﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace AutomationCommand
{
    public class data_input : BasiCommand
    {
        [JsonProperty("config_type")]
        public string ConfigType { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("tablename")]
        public string TableName { get; set; }

        [JsonProperty("condition")]
        public List<Condition> Condition { get; set; }

        public data_input()
        {
            FunctionType = "data_input";
            OtherName = "添加数据";
            ConfigType = "data_input";
            Name = "添加数据";
            TableName = "";
            Condition = new List<Condition>();
            SuccessJump = -1;
            FailureJump = -1;
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
